package com.dingtao.common.bean;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.List;

import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@Data
public class BillRecord {

    @JSONField(name = "total")
    private int total;
    @JSONField(name = "size")
    private int size;
    @JSONField(name = "current")
    private int current;
    @JSONField(name = "pages")
    private int pages;
    @JSONField(name = "records")
    private List<RecordsDTO> records;

    @NoArgsConstructor
    @Data
    public static class RecordsDTO {
        @JSONField(name = "date")
        private String date;
        @JSONField(name = "item")
        private List<ItemDTO> item;

        @NoArgsConstructor
        @Data
        public static class ItemDTO {
            @JSONField(name = "id")
            private long id;
            @JSONField(name = "tradeNo")
            private String tradeNo;
            @JSONField(name = "tradeType")
            private int tradeType;
            @JSONField(name = "beforeM")
            private Object beforeM;
            @JSONField(name = "money")
            private double money;
            @JSONField(name = "balance")
            private Object balance;
            @JSONField(name = "method")
            private int method;
            @JSONField(name = "status")
            private Object status;
            @JSONField(name = "rechargeType")
            private Object rechargeType;
            @JSONField(name = "prePayId")
            private Object prePayId;
            @JSONField(name = "transactionId")
            private Object transactionId;
            @JSONField(name = "tips")
            private String tips;
            @JSONField(name = "payTime")
            private String payTime;
            @JSONField(name = "addTime")
            private Object addTime;
            @JSONField(name = "endTime")
            private Object endTime;
            @JSONField(name = "shortTime")
            private String shortTime;
            @JSONField(name = "dateTime")
            private String dateTime;
            @JSONField(name = "strMoney")
            private String strMoney;
            @JSONField(name = "mid")
            private Object mid;
        }
    }
}
